<?php
	require_once '../statementparsers/OFXStatementParser.php';
	//require_once '../delegate/statement/FNBCSVStatementParser.php';
	$statement = new OFXStatementParser();
	$statement->loadFromFile('94969extr.ofx');
	
// 	$statement = new FNBCSVStatementParser();
// 	$statement->loadFromFile('62343199320.csv');
	
	
	echo '<pre>';
	print_r($statement->getBankAcctDetails());
	print_r("\nStatement Balance: ".$statement->getStatementBalance()."\n");
	print_r("Available Balance: ".$statement->getAvailableBalance()."\n\n");
	//print_r($statement->getTransactions());
	foreach($statement->getTransactions() as $transaction){
		echo "TranType: ".$transaction->getType()."\n";
	}
	echo '</pre>';
?>